import request from '@/utils/request'


export const OperationAPI = {
  hasAll(params) {
    return request({
      url: '/IgsOperation/hasAll',
      method: 'get',
      params
    });
  },
  hasAllToPage(params) {
    return request({
      url: '/IgsOperation/hasAllToPage',
      method: 'get',
      params
    })
  },
  add(data) {
    return request({
      url: '/IgsOperation/add',
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: '/IgsOperation/update',
      method: 'post',
      data
    })
  },
  delete(data) {
    return request({
      url: '/IgsOperation/delete',
      method: 'post',
      data
    })
  }
  // 其他方法...
};

export function hasAllIgsOperation(params) {
  return request({
    url: '/IgsOperation/hasAll',
    method: 'get',
    params
  })
}

export function hasAllToPageIgsOperation(params) {
  return request({
    url: '/IgsOperation/hasAllToPage',
    method: 'get',
    params
  })
}

export function AddIgsOperation(data) {
  return request({
    url: '/IgsOperation/add',
    method: 'post',
    data
  })
}

export function UpdateIgsOperation(data) {
  return request({
    url: '/IgsOperation/update',
    method: 'post',
    data
  })
}

export function DeleteIgsOperation(data) {
  return request({
    url: '/IgsOperation/delete',
    method: 'post',
    data
  })
}


